package com.zhuoyue.common.exception;

import java.io.Serializable;

/**
 * ClassName: ServiceException <br/>
 * Description: <br/>
 * date: 2019/1/28 13:14<br/>
 *
 * @author wjming<br />
 * @version 1.0
 */
public class ServiceException extends Exception implements Serializable {
    /**
     * 异常代码
     */
    private String code = "";

    /**
     * 异常消息
     */
    private String message = "";

    public ServiceException(String message) {
        this.message = message;
    }

    public ServiceException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
